package com.lottery.entity;

public enum ResultCode {
	SUCCESS("000000", "操作成功"),
    FAILD("999999", "系统异常"),
    TIMEOUT("888888","操作超时"),
    EDIT_ACCOUNT_EXISTS("005047","账号已存在"),
    User_Login_Error("000502", "登录认证失败"),
    Query_Manager_Error("002000", "搜索管理员信息异常"),
    Edit_Manager_Error("002001", "修改管理员信息异常"),
    Add_Manager_Error("002002", "新增管理员信息异常"),
    Manager_Not_Exist("002003", "管理员不存在"),
    Manager_Has_Exist("002004", "该账号已存在"),
    Update_Password_Error("002005","修改密码信息异常"),
    Update_Password_New_Not_Equals("002006","2次输入的新密码不匹配"),
    Update_Old_Password_verify_Error("002007","旧密码校验出错"),
    Reset_Password_No_Privilege("002008","必须为超级管理员"),
    Reset_Password_Error("002009","重置密码信息异常"),
    EXIST_RELATED_ROLES("exist_related_roles", "存在关联的角色"), 
    EXIST_RELATED_PERMISSIONS("exist_related_permissions", "存在关联的权限点"), 
    Role_Has_Exist("002005", "角色已存在"),
    Add_Role_Error("002006", "新增角色异常"),
    Edit_Role_Error("002007", "修改角色异常"),
    Role_Not_Exist("002008", "角色不存在"),

    VALIDATE_PARAM_FAILD("000400", "参数校验失败"),

    LDAP_AUTH_ERROR("000500", "LDAP认证失败"),

    LDAP_QUERY_ERROR("000501", "LDAP查询失败"),

    USER_LOGIN_ERROR("000502", "登录认证失败"),

    QUERY_ROLE_ERROR("001000", "查询角色异常"),

    QUERY_QUARTZ_DETAIL_ERROR("quartz-detail-001", "查询定时任务详情异常"),
    
    QUERY_CLUSTER_DETAIL_ERROR("quartz-cluster-001", "查询集群状态异常"),
	
	QUERY_QUARTZ_LOG_ERROR("quartz-log-001", "查询定时任务日志异常"),
	
	QUERY_PICTURE_ERROR("picture_001", "查询图片异常"),
    DELETE_PICTURE_ERROR("picture_002", "删除图片异常"),
    PICTURE_FORMAT_ERROR("picture_003", "仅支持 jpg,png,gif,jpeg 图片格式"),
    NULL_PICTURE_ERROR("picture_004", "上传图片为空"),
    PICTURE_TOO_BIG_ERROR("picture_005", "上传图片超过3M"),
    UPLOAD_PICTURE_ERROR("picture_006", "上传图片异常"),
    UPLOAD_PICTURE_SUCCESS("picture_007", "上传图片成功"),
	;

    public final String code;
    public final String message;

    private ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
